import { history } from "umi";
import submission from "@/assets/image/Property 1=submission.png";
import CustomResult from "@/components/customResult";
import { CustomTitle } from "@/components/customTitle";
import { PaddingContent } from "@/components/page-padding";

const RegisterSuccess = () => {
  const text = `Your license plate number registration has been successfully submitted.\n
Our admin will review and approve your record shortly. Thank you for your patience.`;
  const onClick = () => {
    history.push("/");
  };
  return (
    <PaddingContent>
      <CustomTitle>Register License Plate Number</CustomTitle>
      <CustomResult
        icon={submission}
        resultTitle={"Submit successfully and pending to review"}
        resultSubTitle={text}
        btnText={"Back to Home"}
        onClick={onClick}
      />
    </PaddingContent>
  );
};

export default RegisterSuccess;
